package c5_1;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.SocketChannel;
import java.nio.charset.Charset;

/**
 * @author： pang-yun
 * @date： 2021-09-06 16:04
 * 功能目的 ：用于
 */

public class Client {
    public static void main(String[] args) throws IOException {
        SocketChannel sc = SocketChannel.open();
        sc.connect(new InetSocketAddress(8100));
        System.out.println("waiting------------");
     //   sc.write(Charset.defaultCharset().encode("herman"));
        System.out.println("--");
    }
}
